<?php
include_once "xAP-functions/webincludes.php";

if(intval($_GET["state"])==1){
	$sql="update xAP_Pictures_Source set active=0 where SourceID=".intval($_GET["id"]);
}else{
	$sql="update xAP_Pictures_Source set active=1 where SourceID=".intval($_GET["id"]);
}
dbexec($sql);


header("Location:config_setup.php");

?>